package com.shixi.shixitraining.shixitraining.ui.tabhome.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.util.TitleUtil;

public class HotJobActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hot_job);
        initTitle();
        initView();
    }

    private void initView() {

        RecyclerView mRcView = (RecyclerView) findViewById(R.id.rcview_hot_job);
        LinearLayoutManager manager=new LinearLayoutManager(this);
        manager.setOrientation(LinearLayoutManager.VERTICAL);
        mRcView.setLayoutManager(manager);

//        List<HomeListJobBean>  data=new ArrayList<>();
//        data.add(new HomeListJobBean("美国金融实习岗位-信托和过桥基金业务","金融/国际贸易","美国/纽约","本科","http://www.shixi.com/data/comads/2018/03/30/1522376843671.jpg",1,1));
//        data.add(new HomeListJobBean("美国金融实习岗位-信托和过桥基金业务","金融/国际贸易","美国/纽约","本科",2,1));
//        data.add(new HomeListJobBean("美国金融实习岗位-信托和过桥基金业务","金融/国际贸易","美国/纽约","本科",3,1));
//        data.add(new HomeListJobBean("美国金融实习岗位-信托和过桥基金业务","金融/国际贸易","美国/纽约","本科",4,1));
//        data.add(new HomeListJobBean("美国金融实习岗位-信托和过桥基金业务","金融/国际贸易","美国/纽约","本科",1,1));
//      HomeListAdapter adapter=new HomeListAdapter(this,data, Glide.with(this));
//        mRcView.setAdapter(adapter);

    }

    private void initTitle() {

        TitleUtil titleUtil=new TitleUtil(findViewById(R.id.top_bar_layout));
        titleUtil.initTitle(4,R.id.top_bar_center_tv,R.id.top_bar_left_img,0,R.drawable.icon_back,0,"热门岗位","","");
    }


}
